export default class EnvConfig {
  static apiEnv: string = import.meta.env.VITE_API_ENV;

  static isNodeEnvDevelopment = () => import.meta.env.DEV;
  static isNodeEnvProduction = () => import.meta.env.PROD;
  static isConnectTo3rdPlatform = (): boolean => import.meta.env.VITE_API_ENV?.startsWith('ppc-');
  static isConnectToPublicPlatform = (): boolean => !EnvConfig.isConnectTo3rdPlatform();
  static isConnectToLocal = (): boolean => import.meta.env.VITE_API_ENV?.endsWith('local');
  static isConnectToDevelopment = (): boolean => import.meta.env.VITE_API_ENV?.endsWith('dev');
  static isConnectToStaging = (): boolean => import.meta.env.VITE_API_ENV?.endsWith('staging');
  static isConnectToProduction = (): boolean => import.meta.env.VITE_API_ENV?.endsWith('production');
}
